//
//  JMLoginUserModel.h
//  JMBaseProject
//
//  Created by Liuny on 2020/1/3.
//  Copyright © 2020 liuny. All rights reserved.
//

#import "JMUserModel.h"

NS_ASSUME_NONNULL_BEGIN

#define kLoginUserSavePath [[UIApplication sharedApplication].documentsPath stringByAppendingPathComponent:@"user"]
#define kAppConfigSavePath [[UIApplication sharedApplication].documentsPath stringByAppendingPathComponent:@"AppConfig"]

@interface JMLoginUserModel : JMUserModel
@property (nonatomic, strong) NSString *modBankCode;
@property (nonatomic, strong) NSString *modBankName;
@property (nonatomic, strong) NSString *step;
@property (nonatomic, strong) NSString *servicePhone;
@property (nonatomic, strong) NSString *complaintPhone;

@property (nonatomic, strong) NSString *email;
@property (nonatomic, strong) NSString *whatsApp;
@property (nonatomic, strong) NSString *firstInstallTimeStemp;
@property (nonatomic, strong) NSString *last_login_time;
@property (nonatomic, strong) NSString *lastStartTimeStemp;



@property (nonatomic, strong) NSString *deviceNo;
@property (nonatomic, strong) NSString *randomKey;

@property (nonatomic, strong) NSString *sessionId;
@property (nonatomic, strong) NSString *token;

@property (nonatomic,assign)BOOL notFirst;//是否是第一次打开app
@property (nonatomic,assign)BOOL isFirstVerify;//是否是第一次认证通过;
@property (nonatomic,assign)BOOL isVerified;//是否完整提交了认证（不代表认证结果）
//用户信息
@property (nonatomic, copy) NSString *realName;//昵称
@property (nonatomic, strong) NSNumber* unused;
@property (nonatomic, strong) NSNumber* repaymentTotalAmount;
@property (nonatomic, strong) NSString *phone;

//信用报告
@property (nonatomic, assign) BOOL ficoInfoError;
@property (nonatomic, assign) BOOL ficoshow;
@property (nonatomic, assign) BOOL showFicoWarning;
@property (nonatomic, assign) BOOL showCloudunWarning;
@property (nonatomic, assign) BOOL showFicoPop;
@property (nonatomic, assign) BOOL showCREntrance;
@property (nonatomic, assign) BOOL showFAQ;

@property (nonatomic, strong) NSNumber* ficoExpireTime;
@property (nonatomic, strong) NSString* ficoExpireTimeString;

@property (nonatomic, strong) NSNumber* cloudunExpireTime;
@property (nonatomic, strong) NSString* cloudunExpireTimeString;

@property (nonatomic, strong) NSNumber* cloudunScore;
@property (nonatomic, strong) NSNumber* ficoScore;

//FAQ部分
@property (nonatomic, assign) NSInteger currentDateInterval;
@property (nonatomic, strong) NSString *adid;

///当前纬度,
@property (nonatomic, strong) NSString *latitude;
///当前经度
@property (nonatomic, strong) NSString *longitude;
///省,
@property (nonatomic, strong) NSString *province;
///市
@property (nonatomic, strong) NSString *city;
///街道,
@property (nonatomic, strong) NSString *street;
///fico错误弹窗弹出时间，判断一天一次使用
@property (nonatomic, strong) NSString *ficoPopDataString;
///借款失败弹窗弹出时间，判断一天一次使用
@property (nonatomic, strong) NSString *loanFailPopDataString;



-(void)save;
-(void)clear;
@end


NS_ASSUME_NONNULL_END
